#include<iostream>
using namespace std;
string s1, s2;
int a[10000], b[10000], c[10000], la, lb, lc;
int main() {
	cin >> s1 >> s2;
	la = s1.length(), lb = s2.length(), lc = la + lb;
	for (int i = 0; i < la; i++) a[la - i] = s1[i] - '0';
	for (int i = 0; i < lb; i++) b[lb - i] = s2[i] - '0';
	for (int i = 1; i <= la; i++) {
		for (int j = 1; j <= lb; j++) {
			c[i + j - 1] += a[i] * b[j];
			c[i + j] += c[i + j - 1] / 10;
			c[i + j - 1] = c[i + j - 1] % 10;
		}
	}
	if (a[1] == 0 || a[1] == 0)
	{
		cout << "0";
		return 0;
	}
	if (c[lc] == 0 && lc > 0) lc--;
	for (int i = lc; i > 0; i--)
		cout << c[i];
	return 0;
}
